home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / apps / 430 / applic / fb.doc < prev    next >
Text File  |  1989-11-16  |  20KB  |  489 lines

  1.                         First Base (ver 1.6) - Database
  2.  
  3.    1.  First Base .................................... 2
  4.      1.1 Introduction ................................ 2
  5.      1.2 Applications ................................ 2
  6.      1.3 Size restrictions ........................... 2
  7.  
  8.    2.  Required files ................................ 2
  9.      2.1 Database file description ................... 2
  10.      2.2 Definition file description ................. 2
  11.      2.3 Report format file description .............. 2
  12.  
  13.    3.  Definitions ................................... 3
  14.      3.1 Fields ...................................... 3
  15.      3.2 Records ..................................... 3
  16.  
  17.    4.  Running the First Base ........................ 3
  18.      4.1 Starting .................................... 3
  19.      4.2 New File Creation ........................... 3
  20.      4.3 Data Entry .................................. 3
  21.        4.3.1 Procedure ............................... 3
  22.        4.3.2 Editing Keys ............................ 4
  23.        4.3.3 Function Keys ........................... 4
  24.      4.4 Sorting ..................................... 5
  25.        4.4.1 Single field ............................ 5
  26.         4.4.2 Double field ........................... 5
  27.      4.5 Searches .................................... 5
  28.      4.6 Field Limits ................................ 5
  29.        4.6.1 Limits Description ...................... 5
  30.        4.6.2 Setting Limits For One Field ............ 5
  31.        4.6.3 Setting Limits For More Than One Field .. 6
  32.        4.6.4 Canceling Limits          ............... 6
  33.        4.6.5 Printing Using Limits     ............... 6
  34.      4.7 Deleting Records              ............... 6
  35.        4.7.1 Deleting With First Base ................ 6
  36.        4.7.2 Deleting With An Editor ................. 6  
  37.  
  38.    5.0 Printing Data ................................. 7
  39.      5.1 Print Sizes ................................. 7
  40.      5.2 Multiple records horizontally ............... 7
  41.      5.3 Report Format ............................... 7
  42.        5.3.1 Creating Format With External Editor .... 7
  43.        5.3.2 Page Layout ............................. 7
  44.        5.3.3 Report Format Description ............... 7
  45.        5.3.4 Creating Format With First Base Editor .. 8
  46.      5.4 Page adjustments ............................ 8
  47.        5.4.1 Start Printing .......................... 8
  48.  
  49.    6.0 Sample database ............................... 9
  50.      6.1 Loading sample database ..................... 9
  51.  
  52.    7.0 Suggestions welcome ........................... 9
  53.  
  54.                                  - 1 -
  55.  
  56.  
  57.  
  58.  
  59.  
  60. 1.0 First Base description
  61.  
  62. 1.1 First Base is a fast memory resident database system for 
  63. small and medium size applications. It is not full featured but 
  64. has a wide range of uses, is fast and very easy to learn and 
  65. use. It runs in medium or high resolution on an Atari ST or Mega.
  66.  
  67. 1.1.1 Options in the program are selected either by use of the  
  68. function keys or by selecting from pull down menus with the 
  69. mouse. The return, delete, backspace, insert, home and arrow 
  70. keys are also used when editing a record.
  71.  
  72. 1.2 The program has a wide range of applications. Examples 
  73. include address lists, video tape listings, computer program 
  74. lists, records of checks, christmas card lists, library loan, 
  75. video tape rentals and many more.
  76.  
  77. 1.3 The entire database is loaded into the memory of your ST. 
  78. The more free memory you have the larger the database possible. 
  79. Assuming you have sufficient memory up to 13000 records may be 
  80. created. Each record may consists of up to 1000 characters that 
  81. in turn may comprise up to 11 fields.
  82.  
  83. 2.0 Necessary files
  84.  
  85. 2.1 A First Base database consists of three basic files. The 
  86. first of these contains the data for all records. It is named 
  87. whatever file name you decide with the extender .DAT. It is 
  88. organized as one record per line. Each line may be up to 1000 
  89. characters long. The data is in ASCII format with no control or 
  90. special characters so the file will appear normal when viewed 
  91. and it will be accessible to editors or other programs.
  92.  
  93. 2.2 The second file is the definition file. The name is the same 
  94. as the one chosen above with a .DEF extender. This file defines 
  95. the field names and the length of each field. It is also in 
  96. normal ASCII format. It can be created with the First Base 
  97. program or it can be made with an editor or word processor that 
  98. does not put formatting characters in its data file.
  99.  
  100. 2.3 The third file specifies how the data is to be printed and 
  101. the heading to be used on the page. The name is made up of the 
  102. same file name above with the extender .RPT and is referred to as 
  103. the report format file. Like the files above it is in normal 
  104. ASCII format and may be accessed or created by other programs or 
  105. editors. The file consists in line one of a heading plus 11 
  106. lines of format some of which may be empty. 
  107.  
  108.                                 - 2 -
  109.  
  110.  
  111.  
  112.  
  113.  
  114. 3.0 Definitions
  115.  
  116. 3.1 A field is defined to be a piece of information. For example 
  117. a persons name, a disk number, a date, etc. It will be displayed 
  118. on one line on the monitor screen.
  119.  
  120. 3.2 A record is defined to be from 1 to 11 fields that are 
  121. related. For instance a persons name, their street number, their 
  122. city and state, their birth date.
  123.  
  124. 4.0 Running the program.
  125.  
  126. 4.1 To run the program double click on FB.PRG, Then click on 
  127. select. When the file selector box is shown you may change disks 
  128. in your drive or select another drive. To select another drive 
  129. change the drive letter in the file selector box and click the 
  130. mouse on the bar above the file names, then select the correct 
  131. folder. Finally use your mouse or type in the name of an old 
  132. .DAT file, or enter a new .DAT name for a new file. 
  133.  
  134. 4.2 If you choose to make a new file brief instructions are 
  135. displayed and the cursor will be positioned at the upper left 
  136. corner of the screen. You will make the definition file. First 
  137. you type in the name of the first field, it looks best on the 
  138. screen if it is preceded by a blank space. After the name type a 
  139. : followed by a space. Finally use the _ (underscore) to specify 
  140. the number of spaces desired for the field. For example...
  141.  
  142.  PROGRAM NAME: ____________________________
  143.  
  144. 4.2.1 When you are satisfied with that field, press the return 
  145. key. Continue in the same manner for other fields. You are 
  146. limited to 11 fields and not more than 80 characters across the 
  147. screen on any one field. Finally after the last field press the 
  148. F5 key (write.) This saves your field definition file and you 
  149. are ready for entering new data. 
  150.  
  151. 4.3 Data entry.
  152.  
  153. 4.3.1 To begin entering new data into the fields you must first 
  154. press the F6 key. This sets up the data entry mode. After 
  155. pressing F6 you fill in the fields.  Field editing is outlined 
  156. below. After you have finished entering data in all the desired 
  157. fields press the F5 key to save the record. After pressing F5 
  158. the record will advance and fields will be blank again waiting 
  159. for the next entry. When you have completed entering data for 
  160. other records you can press F3 or one of the other function keys 
  161. other than F5 or F6 to terminate data entry mode.
  162.                                 - 3 -
  163.  
  164.  
  165.  
  166.  
  167.  
  168. 4.3.2 To edit fields the editing keys work as follows:
  169.      Up arrow moves to preceding field (up).
  170.      Down arrow moves to following field (down).
  171.      Right arrow advances cursor to right, at end of field goes 
  172.         to field below.
  173.      Left arrow moves cursor to left and stops at first of 
  174.          field.
  175.      Return is similar to down arrow.
  176.      Backspace deletes character under the cursor and moves it 
  177.          left.
  178.      Insert toggles the insert mode on or off. A red I in the 
  179.          upper right corner indicates insert mode. Insert mode 
  180.          on enables characters to be inserted in a line. With
  181.          insert mode off characters are overwritten.
  182.      Shift home clears the fields. The do not stay cleared 
  183.          unless you follow by pressing the F5 key.
  184.      Undo quits without saving the file back to the disk.
  185.      Help displays a brief summary of commands. 
  186.  
  187. ----> Changes you make when editing fields are not saved unless 
  188.                  you press F5 following them.    
  189.    
  190. 4.3.3 Function keys are as follows: (F11 to F20 are obtained using shift)
  191.      F1  Display next record in sequence
  192.      F2  Display previous record in sequence
  193.      F3  Display first record in memory.
  194.      F4  Display last record in memory.
  195.      F5  Write current record on screen to memory.
  196.      F6  Begin entry of new record (use only once before 
  197.          entering records.)
  198.      F7  Clear fields (but don't save to memory unless followed by F5.)
  199.      F8  Sort the field that cursor is currently in. 
  200.      F9  Search the field that cursor is currently in for a string.
  201.      F10 Quit and save the data in memory back to disk.
  202.      F11 Delete a file from the disk (making room for .DAT file.
  203.      F12 Format a new disk (currently single density 10 sector only)
  204.      F13 Merge another database file with the one in memory. This
  205.           will only work when both files use the save .DEF type,
  206.           that is the fields are all the same type and length.
  207.      F14 Quit but don't save the data back to disk, same as Undo.
  208.      F15 Not used
  209.      F16 Start printing.
  210.      F18 Select normal sized print.
  211.      F19 Select condensed print (set up for Epson printer code.)
  212.      F21-F26 Select to print number of records horizontally
  213.      F28 Enter report format.
  214.      F30 Enter lower limits for display of cursor field.
  215.      F31 Enter upper limits for display of cursor field.
  216.      F32 Erase all limits for all fields.
  217.  
  218.  
  219.  
  220.  
  221.  
  222. 4.4 Sorting
  223.  
  224. 4.4.1 Ascii sorting can be made on any field, either ascending 
  225. or descending. To sort first move the cursor to the field to be 
  226. sorted. Press the F8 key. Use the mouse to select to sort up or 
  227. down, then wait. Sorting is usually fairly fast but the 
  228. following conditions increase the sorting time, a large number 
  229. of records (in the thousands), more than half the available free 
  230. RAM memory of your computer used by data, a lot of sameness in 
  231. the field being sorted. 
  232.  
  233. 4.4.2 To do a double sort, first sort on one field, then resort 
  234. on another field. The first field sorted will be ordered in the 
  235. second field where quantities in the second field are the same.
  236.  
  237. 4.5 Searches
  238.  
  239. 4.5.1 Searches can also be done on any field. First move the 
  240. cursor to the field to be searched. Press F9 or select SEARCH in 
  241. the pull down menu. Type in a string to be searched for. At this 
  242. point if you press return the search is forward from the current 
  243. record. You can also search forward by clicking on FORWARD with 
  244. the mouse or you can search backward by clicking on BACK with 
  245. the mouse. When a match is found the record will be displayed. 
  246. You may then press return to continue searching, or click on 
  247. EXIT if you are done. A blank screen shows that no further 
  248. matches were found. Searches are not case sensitive.
  249.  
  250. 4.6 Field Limits.
  251.  
  252. 4.6.1 Lower and upper limits may be set for any of the fields 
  253. for either display or printing. The limits are case sensitive 
  254. (use only upper case if your data is in upper case) and are 
  255. evaluated as ASCII starting with the first field character on 
  256. the left. 
  257.  
  258. 4.6.2 To set limits first put the cursor in the field that you 
  259. wish to set limits on. Specify the lower or upper limits using 
  260. the pull down menu call FIELDS. Type in the limit values. For 
  261. example if a field contains numbers and you want to show only 
  262. those more than a certain value, say 1000, (they must be left 
  263. justified in the field else you have have to allow for blanks 
  264. before the number) just type in 1000 for the lower limit. Then 
  265. when you press F1 to show the next record only those records 
  266. with the value in the field that are 1000 or more will be shown. 
  267.  
  268.  
  269.  
  270.                                 - 5 -
  271.  
  272.  
  273.  
  274.  
  275.  
  276. 4.6.3 You can also set limits on other fields at the same time. 
  277. If another field had names which started from A through Z you 
  278. could put the cursor in this field then set lower and upper 
  279. limits, say BE for lower and DO for upper. Then when you use the 
  280. F1 or F2 keys you would only see records which had the second 
  281. field in the range of BE.... to DO.... and the first field 1000 
  282. or more. 
  283.  
  284. 4.6.4 To cancel limits for any field enter only return in the 
  285. dialog box or select no limits in the pull down menu to erase 
  286. all limits specifications for all fields. 
  287.  
  288. 4.6.5 The limits specifications do not apply to sorting. But 
  289. since they do work with printing you can print out ranges of 
  290. values from your database. For instance if you had a database of 
  291. music files and one of the fields was the file extender you 
  292. could print out a list of all music files of this type, say for 
  293. example .SNG, by entering .SNG for lower limits and .SNG again 
  294. for upper limits. Then only those records with .SNG would be 
  295. printed.
  296.  
  297. 4.7 Deleting records.
  298.  
  299. 4.7.1 In order to delete records from a file you must first 
  300. display the record to be deleted, then press F7 followed by F5. 
  301. This leaves a blank record in memory. Before quitting and saving 
  302. the file to disk, sort on any field in ascending order. This puts 
  303. the blank records at the first of the file. When the file is 
  304. saved these blank records will be skipped and not saved to 
  305. disk.
  306.  
  307. 4.7.2 If you have very many records to delete this can be a time 
  308. consuming process. You may find it easier to use another line 
  309. editor or word processor to eliminate unwanted records. These 
  310. will be shown as single lines. If you do this and resave the 
  311. file remember not to resave the file in word processing mode.
  312.  
  313. 5.0  Printing data.
  314.  
  315. 5.1  Two print types are supported using Epson printer codes. 
  316. These are normal, 80 characters per line maximum, and condensed, 
  317. 132 characters per line maximum. These are selected by the mouse 
  318. in the print menu.
  319.  
  320.  
  321.  
  322.  
  323.  
  324.                                 - 6 -
  325.  
  326.  
  327.  
  328.  
  329.  
  330. 5.2  A number of records can be selected, from one to six, in the 
  331. print menu. This number refers to the number of different records 
  332. that will be printed horizontally across the page.  Parts of the 
  333. records may be truncated, if necessary, to fit in the space 
  334. specified.
  335.  
  336. 5.3  Report format. This is a file that must be created before      
  337. you can start printing. It contains information that controls how 
  338. the data is printed. This format file is read, if it exists when 
  339. the program first starts. A different format file can be read or 
  340. created by selecting Report Format in the print menu.
  341.  
  342. 5.3.1 The report format file can be created through the First Base 
  343. program or though a word processor or editor, for example as in 
  344. the program Flash. When a separate editor is used the same rules 
  345. as explained in section 3.3.2 must be followed.
  346.  
  347. 5.3.2 An explanation composition of the report format file 
  348. follows. The structure is different than in versions prior to 1.6. 
  349. From one to eleven lines may be printed per record. Each page may 
  350. include an optional title line which labels the columns that are 
  351. printed. Text may be included with the file data as it is printed. 
  352. The minimum number of print positions per field when printed is 
  353. two.
  354.  
  355. 5.3.3 The fields of a record are numbered 1 through 9 followed by 
  356. A for field 10 and B for field 11. You specify where you want data 
  357. of a field to be printed by using these numbers. These are 
  358. differentiated from other text data that may contain these by 
  359. beginning the field that contains them by a \. An example of a 
  360. format line with heading line is as follows:
  361.  
  362. Address                      Automobile   Date     Name
  363. \1111111111111111111111111   \5555555555  \333333  \444444444444444
  364.  
  365. The \ is set to the same as the field number that follows it. So 
  366. in the above example 26 places would be allotted for data from 
  367. field 1 followed by 3 blank spaces followed by 11 places for data 
  368. from field 5 followed by two blank spaces followed by 7 places for 
  369. data from field 3 followed by two blank spaces followed by 16 
  370. places for data from field 4. If the field data is more than the 
  371. places you have allowed for it will be truncated. If the places 
  372. you have specified are more than the field data extra blank spaces 
  373. will be inserted at the end. An example of a format with embedded 
  374. text follows:
  375.  
  376. Name \111111111111111111111    Age \2     Salary $\333333
  377.  
  378.                                 - 7 -
  379.  
  380.  
  381.  
  382.  
  383.  
  384. The report format file must always consist of 12 lines. The 
  385. first line in the file is the heading line. If no heading is 
  386. desired this line consists only of a return. If headings are used 
  387. then will be aligned over the proper matching fields in the lines 
  388. below. The eleven lines that follow the heading specify the format 
  389. for up to 11 lines printed vertically for each record. Each line 
  390. may appear as in the two above examples. If a blank line is 
  391. desired you must insert only one space followed by a return on 
  392. that line. The first line that contains only a return terminates 
  393. the lines that are to be printed. So for instance if you wanted 
  394. only one line per record (as was the case in previous versions of 
  395. this program) first type the heading line, second type the format 
  396. line, and on the third line only return. The other 9 lines should 
  397. be entered as only a return as well. 
  398.  
  399. 5.3.4 When using the First Base format generator instead of an 
  400. editor there are a few other features. You enter this part of the 
  401. program by selecting New under Report Format. Then you enter the 
  402. format for line one. When that is satisfactory you enter the 
  403. column headings (if desired) which is easier to do after you have 
  404. already set the number of places for each field. After that you 
  405. can enter more lines of format if desired. The field names 
  406. corresponding to the numbers will be shown at the bottom of the 
  407. screen. When you type a \ followed by a field number the correct 
  408. number of positions will be printed. If you want fewer places use 
  409. the backspace key to remove them, if you want more just type them 
  410. in. The line will scroll to the left if you pass 80 characters 
  411. making it possible to create longer lines when using condensed 
  412. printing. Only the back space key works for editing. Press return 
  413. at the end of each format line.
  414.  
  415. 5.4 When data is printed using more than one line per record the 
  416. number of records per page is adjusted such that a record is not 
  417. broken on a page boundary. This makes printing address labels and 
  418. the like possible.
  419.  
  420. 5.4.1 Before you begin printing you may decide to print the data 
  421. in several columns. This will condense the output and is useful  
  422. when you have a large number of records and the amount of data 
  423. to be printed is small. For instance if you made a list of 
  424. programs and on which disk each is, you might be able to print 4 
  425. across the page compressed. Select the number of print columns 
  426. from the pull down menu. After selecting Normal or Compressed is 
  427. selected in the pull down menu then select Start printing. Press 
  428. the escape key to abort printing has started.
  429.  
  430.  
  431.  
  432.                                 - 8 -
  433.  
  434.  
  435.  
  436.  
  437.  
  438. 6.0 Included with this program in the .ARC file is a sample 
  439. database set up for keeping track of music files that I have. It 
  440. is only included as a demonstration of the First Base program.
  441.  
  442. 6.1 To use this run the program. Then select SONGS.DAT as the 
  443. data file using the disk you have placed it on. The SONGS.DEF 
  444. file sets up the field names and lengths of the fields. A sample 
  445. SONGS.RPT report file is included which is set for one line per 
  446. record printing.
  447.  
  448.  
  449. 7.0 First Base is shareware. Contributions or suggestions regarding
  450. this program are welcome. Write...
  451.  
  452.                                Dave Henry
  453.                             1720 Wickersham Dr.
  454.                           Anchorage, Alaska 99507
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.                                 - 9 -
  488.  
  489.